<!DOCTYPE html PUBLIC "-//W3C//Dtd XHTML 1.0 Transitional//EN" "http://www.w3.org/tr/xhtml1/Dtd/xhtml1-transitional.dtd">
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>

<%@page import="com.infodms.dms.util.CommonUtils"%><html xmlns="http://www.w3.org/1999/xhtml">
<%@page import="com.infodms.dms.common.Constant" %>
<jsp:include page="${contextPath}/common/jsp_head_new.jsp" />
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>索赔旧件库存查询</title>
<% String contextPath = request.getContextPath(); %>
</head>
<BODY onload="doInit();">
<div class="navigation"><img src="<%=contextPath%>/img/nav.gif"/>&nbsp;当前位置： 售后服务管理&gt;索赔旧件管理 &gt;索赔旧件库存查询</div>
  <form id="fm" name="fm">
  	  <input type="hidden" name="curPage" id="curPage" value="1" />
    <TABLE class="table_query">
       <tr>
			<td align="right" nowrap="nowrap">生产基地：</td>
			<td align="left" nowrap="nowrap">
				<script type="text/javascript">
					genSelBoxContainStr("yieldly",<%=Constant.SERVICEACTIVITY_CAR_YIELDLY%>,"",true,"short_sel","","true",'<%=CommonUtils.checkNull(request.getAttribute("yieldly"))%>');
			    </script>
			</td>
	         <td class="table_query_3Col_label_5Letter">供应商名称： </td>
	         <td nowrap="nowrap">
	          <input id="supply_name" name="supply_name" value="" type="text" class="middle_txt" datatype="1,is_letter_cn,30">
	         </td>
       </tr>
       <tr>
	         <td class="table_query_3Col_label_5Letter">配件代码：</td>
	         <td nowrap="nowrap">
	            <input id="part_code" name="part_code" value="" type="text" class="middle_txt" datatype="1,is_null,30">
	         </td>
	         <td class="table_query_3Col_label_5Letter">配件名称： </td>
	         <td nowrap="nowrap">
	          <input id="part_name" name="part_name" value="" type="text" class="middle_txt" datatype="1,is_null,30">
	         </td>
       </tr>
       <tr>
         <td align="center" nowrap="nowrap" colspan="4">
           <input class="normal_btn" type="button" id="qryButton" name="qryButton" value="查询"  onClick="__extQuery__(1);">
           &nbsp;&nbsp;
           <input class="normal_btn" type="button" id="qryButton" name="qryButton" value="导出"  onClick="to_excel();">
         </td>
       </tr>
  </table>
  <!--分页 begin -->
	<jsp:include page="${contextPath}/queryPage/orderHidden.html" />
	<jsp:include page="${contextPath}/queryPage/pageDiv.html" />
  <!--分页 end -->
  
<div id="loader" style='position:absolute;z-index:200;background:#FFCC00;padding:1px;top:4px;display:none;display: none;'></div>
</form>
<br>
<script type="text/javascript">
   
   var myPage;
   //查询路径
   var url = "<%=contextPath%>/claim/oldPart/ClaimOldPartStorageManager/queryCurStoreList.json";
				
   var title = null;
   
   var columns = [
  				{header: "序号",align:'center',renderer:getIndex},
  				{header: "产地", dataIndex: 'yieldly', align:'center',renderer:getItemValue},
  				{header: "供应商名称", dataIndex: 'supply_name', align:'center'},
  				{header: "配件代码", dataIndex: 'part_code', align:'center'},
  				{header: "配件名称",dataIndex: 'part_name',align:'center'},
  				{header: "库存数",dataIndex: 'remain_amount',align:'center'}
  		      ];
   function doInit(){
	   loadcalendar();
   }
   //导出功能
   function to_excel(){
	   fm.action = "<%=contextPath%>/claim/oldPart/ClaimOldPartStorageManager/toExcel.do";
	fm.submit();
   }
</script>
</BODY>
</html>